<%@page import="com.bringway.global.util.DateUtils"%>
<%@page import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="com.bringway.global.domain.SysUserDetails"%>
<%@page import="com.bringway.global.domain.User"%>
<%@page import="com.bringway.global.constant.P2pConstant"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<title><%=P2pConstant.systemname%></title>
<%
	SysUserDetails sysUserDetails =	(SysUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
	String gyh = "",username="",roleId="",roleName="",sjhm="",pwd="";
	if(null != sysUserDetails){
		gyh = sysUserDetails.getGyh();
		username = sysUserDetails.getUsername();
		roleId = sysUserDetails.getRoleId();
		roleName = sysUserDetails.getRoleName();
		sjhm = sysUserDetails.getSjhm();
		pwd = sysUserDetails.getPassword();
	}
	System.out.println("gyh : " + gyh);
	System.out.println("username : " + username);
	System.out.println("roleId : " + roleId);
	System.out.println("roleName : " + roleName);
	System.out.println("sjhm : " + sjhm);
	System.out.println("pwd : " + pwd);
%>
<jsp:include page="/global/css/publicstyle/common.jsp"  flush="true"/>
<style>
html,body{
 height:100%;
}
* {
	margin: 0;
	padding: 0;
}
.btn{width:56px;margin-left:10px;height: 19px;border:none;background:#109BD0;color:white;cursor: pointer;}</style>
<script type="text/javascript" src="Main.js"></script>
<script type="text/javascript" src="ChanagePassword.js"></script>
<script type="text/javascript">
	var baseUrl = '<%=request.getContextPath()%>';
	var gyh = '<%=gyh%>';
	var sjhm = '<%=sjhm%>';
	var username = '<%=username%>';
	var roleId = '<%=roleId%>';
	var roleName = '<%=roleName%>';
	var pwd = '<%=pwd%>';
	var nowDate = '<%=DateUtils.getCurrentDataStr()%>';
	Ext.onReady(function(){
		new Ext.Viewport({
			layout : 'fit',
			border : false,
			items : [new admin.main.Main()]
		});
	});
</script>
</head>
<body>
</body>
</html>